
from tkinter import *


root = Tk()


# solution 表示每一步走多少，tickinterval 表示刻度
s1 = Scale(root,from_=0,to=100,tickinterval=10,resolution=20)
s2 = Scale(root,from_=1,to=200,tickinterval=5,resolution=20,orient=HORIZONTAL)

s1.pack()
s2.pack()

def show():

    print(s1.get(),s2.get())

Button(root,text="获取信息",command=show).pack()

mainloop()